﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace PFMHandlers
{
   public class PFMDecodeHandler
    {
       public byte[] PFMDecode(byte[] Decode)
       {
           PFMGlobals.PFMDefinitions.param = new CspParameters();
           PFMGlobals.PFMDefinitions.param.KeyContainerName = "Olive";
           using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(PFMGlobals.PFMDefinitions.param))
           {
               return rsa.Decrypt(Decode, false);
           }
       }
    }
}
